





<div class="container">
    <div class="rwo">
        <div class="maskTwo xy">
            <div class="top">
                <img class="pull-left"
                     src="/image/officeHall/uploadAssetPackage/mask.png"/>
                <span>发起协同</span>
                <img class="pull-right"
                     src="/image/officeHall/uploadAssetPackage/clos.png" alt=""/>
            </div>
            <div class="myFrom ">
                <p>2.工作计划</p>
                <div class="maskTwoCenter formOne">
                    <div class="timeWork">
                        <span>时间</span>
                        <span>工作节点</span>
                    </div>
                    <ul id="dataUl">
                        <?php
                        if (!empty($initiationPlan)){
                            $classId = 1;
                            foreach ($initiationPlan as $k => $v){
                                $planId = $v['id'];
                                $classSId = 'query_start_date'.$classId;
                                $classEId = 'query_end_date'.$classId;
                                $stage = !empty($v['stage'])?explode('/',$v['stage']):'';
                                if (!empty($stage)){
                                    $stageStart = $stage[0];
                                    $stageEnd   = $stage[1];
                                }else{
                                    $stageStart = '2017-11-11';
                                    $stageEnd   = '2017-11-11';
                                }
                                $job = !empty($v['job'])?$v['job']:'';
                                $classId++;
                                echo <<<WORKS
<li>
                          <label for="$classSId">
                                <input id="$classSId"
                                       placeholder="2017/11/29"
                                       name="query_start_date[]" value="$stageStart"
                                       type="text" class="s-input-txt openrili_start"/>
                                <img class="y"
                                     src="/image/officeHall/uploadAssetPackage/data.png"/>
                            </label>
                            <span> —</span>
                            <label for="$classEId">
                                <input id="$classEId"
                                       placeholder="2017/11/29"
                                       name="query_end_date"
                                       value="$stageEnd" type="text"
                                       class="s-input-txt openrili_end"/>
                                <img class="y"
                                     src="/image/officeHall/uploadAssetPackage/data.png"/>
                            </label>
                            <span class="endImmediately">
      								    	<input type="text" id="endImmediately"
                                                   placeholder="完成新包尽调评估报告" value='$job'/>
      								    </span> 
      								    <span>
      								    	<input type="text" hidden class="upPlanWork" value="$planId"/>
      								    </span>
                            <button type="button" class="btn btn-success">
                                添加
                            </button>
                            <button type="button" onclick='delPlan($planId)' class="btn btn-danger">
                                删除
                            </button>
                        </li>
WORKS;
                            }
                        }else{
                            echo <<<WORK
<li>
                            <label for="query_start_date1">
                                <input id="query_start_date1"
                                       placeholder="2017/11/29"
                                       name="query_start_date[]" value=""
                                       type="text" class="s-input-txt openrili_start"/>
                                <img class="y"
                                     src="/image/officeHall/uploadAssetPackage/data.png"/>
                            </label>
                            <span> —</span>
                            <label for="query_end_date1">
                                <input id="query_end_date1"
                                       placeholder="2017/11/29"
                                       name="query_end_date"
                                       value="" type="text"
                                       class="s-input-txt openrili_end"/>
                                <img class="y"
                                     src="/image/officeHall/uploadAssetPackage/data.png"/>
                            </label>
                            <span class="endImmediately">
      								    	<input type="text" id="endImmediately"
                                                   placeholder="完成新包尽调评估报告"/>
      								    </span> <span>
      								    	<input type="text" hidden class="upPlanWork" value="0"/>
      								    </span>
                            <button type="button" class="btn btn-success">
                                添加
                            </button>
                            <button type="button" class="btn btn-danger">
                                删除
                            </button>
                        </li>

WORK;
                        }

                        ?>
                    </ul>
                </div>
                <!--<form action="" class="formOne">

                </form>-->
                <div class="lastNextStep">
                    <button type="button" class="btn nextStep btn-primary  active pull-right" id="submit">提交</button>
                    <button type="button" class="btn lastStep pull-right">取&nbsp;&nbsp;消</button>
                </div>

            </div>
        </div>
    </div>
</div>
